package model

type ReqPlatform struct {
	Id             int    `xorm:"not null pk autoincr INT(10)" json:"id" form:"id"`
	Acid           int    `xorm:"" json:"acid" form:"acid"`
	Type           int    `xorm:"" json:"type" form:"type"`
	AppName        string `xorm:"" json:"app_name" form:"app_name" binding:"required" required_err:"请输入小程序名称"`
	AppId          string `xorm:"" json:"app_id" form:"app_id"  binding:"required" required_err:"请输入小程序appid"`
	AppSecret      string `xorm:"" json:"app_secret" form:"app_secret"  binding:"required" required_err:"请输入小程序密钥"`
	PayMchId       string `xorm:"" json:"pay_mch_id" form:"pay_mch_id"  binding:"required" required_err:"请输入微信支付商户号"`
	PayKey         string `xorm:"" json:"pay_key" form:"pay_key"  binding:"required" required_err:"请输入微信支付key"`
	PayCertPath    string `xorm:"" json:"pay_cert_path" form:"pay_cert_path"`
	PayCertKeyPath string `xorm:"" json:"pay_cert_key_path" form:"pay_cert_key_path"`
	PrivateKey     string `xorm:"" json:"private_key" form:"private_key"`
	ShareTitle     string `xorm:"" json:"share_title" form:"share_title"`
	ShareImg       string `xorm:"" json:"share_img" form:"share_img"`
	Remark         string `xorm:"" json:"remark" form:"remark"`
	CreatedAt      int    `xorm:"created" json:"created_at" form:"created_at"`
	UpdatedAt      int    `xorm:"updated" json:"updated_at" form:"updated_at"`
	DeletedAt      int    `xorm:"deleted" json:"deleted_at" form:"deleted_at"`
}

func (ReqPlatform) TableName() string {
	return "account_platform"
}
